﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<SDT.Site.ViewModels.CompanyListModels>" %>
<%@ Import Namespace="SDT.Model" %>
<%@ Import Namespace="SDT.Site.ViewModels" %>
<div class="bor_cor">
    <div class="bar_blue" style="text-align:center">Danh bạ doanh nghiệp</div>
    <div class="tinrao_cate">
        <ul>
            <% if (Model.CompanyTypies != null && Model.CompanyTypies.Count() > 0)
               {

                   foreach (var c in Model.CompanyTypies)
                   {
                       var path = string.Format("/company/directories/{0}/{1}/{2}",
                       c.ID,
                       Model.CityID,
                       Model.DistrictID);
                       var css = c.ID == Model.CompanyTypeID ? "act" : string.Empty;
                       if (Model.Keyword != null && Model.Keyword != string.Empty) path = path + "?key=" + Model.Keyword;
                    %>
                    <li><a href="<%=path %>" class="<%=css %>"><%= c.Name %></a></li>
                   <%}
               }%>
        </ul>
    </div>
</div>
<div class="clear"></div>

